﻿//
// Album.cs: Represents an album in the library.
//
// Copyright 2010 Michael Goethe
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Drawing;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace S9PalCommon.ArtistLibrary
{
    [Serializable]
    public class Album
    {
        #region Fields

        private List<AlbumArt> albumArt = new List<AlbumArt>();
        private String name = null;
        private uint year = 0;

        #endregion

        #region Constructors

        /// <summary>
        /// Create a new album.
        /// </summary>
        /// <param name="albumName">Name of the album.</param>
        public Album(String albumName)
        {
            Name = albumName;
        }

        /// <summary>
        /// Create a new album.
        /// </summary>
        /// <param name="albumName">Name of the album.</param>
        /// <param name="albumYear">Year the album was released.</param>
        public Album(String albumName, uint albumYear)
        {
            Name = albumName;
            Year = albumYear;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets album art for the album.
        /// </summary>
        public List<AlbumArt> AlbumArt
        {
            get
            {
                return albumArt;
            }
            set
            {
                albumArt = value;
            }
        }

        /// <summary>
        /// Gets or sets the album name.
        /// </summary>
        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        /// <summary>
        /// Gets or sets the release year of the album.
        /// </summary>
        public uint Year
        {
            get
            {
                return year;
            }
            set
            {
                year = value;
            }
        }

        #endregion
    }
}

